<html>
<head>
	<title>Geograph Portal Maker</title>
	<link rel="stylesheet" type="text/css" href="/portals/style.css" />
	<link rel="shortcut icon" type="image/x-icon" href="/portals/favicon.ico">
</head>
<body>
	<div class="header">
		<img src="/portals/images/portal-G2a-1-64.png" width="64" height="64" alt="portals logo - by oasthousearchive" align="left" hspace=10 style="position:relative;top:-2px"/> 
		<h2 onclick="location.href='/portals/';">Geograph Portal Maker</h2>
	</div>
	<div class="topbox">
		<ul>
			<li><a href="/portals/"><b>Homepage</b></a>
				<ul>
					<li><a href="/portals/mine.php">Your Portals</a></li>
					<li><a href="/portals/faq.php">FAQ</a></li>
					<li><a href="/portals/edit.php">Create a Portal!</a></li>
				</ul>
			</li>
		</ul>

		<form action="/portals/search.php" method="get">
			<input type="text" name="q" value="<? if (empty($_GET['q'])) { echo 'search keywords...'; } else { echo he($_GET['q']); } ?>" size="15" onfocus="if (this.value=='search keywords...') {this.value='';}"/><input type="submit" value="Search"/>
		</form>	
		
		<? if (!empty($_SESSION['realname'])) { ?>
			<ul>
				<li>Hi <i><? echo he($_SESSION['realname']); ?></i>! <a href="/portals/logout.php">Logout</a></li>
			</ul>
		<? } ?>
		
	</div>
